package com.tid.hbasees.model;

import com.tid.hbasees.utils.hbase.HBaseHelper;


public class Device {

    private String deviceID;

    private String deviceName;

    private String deviceTypeID;

    private String netLevel;

    private String platID;

    private double freq;

    private String servID;

    private String systemVersion;

    private long time;

    private String onlineStatus;

    public String getRowkey() {
        return deviceTypeID + HBaseHelper.ROWKEY_SEP + time + HBaseHelper.ROWKEY_SEP + deviceID;
    }

    private String getIndex() {
        return platID + HBaseHelper.ROWKEY_SEP + time + HBaseHelper.ROWKEY_SEP + deviceID;
    }

    public String getDeviceID() {
        return deviceID;
    }

    public void setDeviceID(String deviceID) {
        this.deviceID = deviceID;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceTypeID() {
        return deviceTypeID;
    }

    public void setDeviceTypeID(String deviceTypeID) {
        this.deviceTypeID = deviceTypeID;
    }

    public String getNetLevel() {
        return netLevel;
    }

    public void setNetLevel(String netLevel) {
        this.netLevel = netLevel;
    }

    public String getPlatID() {
        return platID;
    }

    public void setPlatID(String platID) {
        this.platID = platID;
    }

    public double getFreq() {
        return freq;
    }

    public void setFreq(double freq) {
        this.freq = freq;
    }

    public String getServID() {
        return servID;
    }

    public void setServID(String servID) {
        this.servID = servID;
    }

    public String getSystemVersion() {
        return systemVersion;
    }

    public void setSystemVersion(String systemVersion) {
        this.systemVersion = systemVersion;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getOnlineStatus() {
        return onlineStatus;
    }

    public void setOnlineStatus(String onlineStatus) {
        this.onlineStatus = onlineStatus;
    }
}
